﻿using Common.Enum;
using static Common.Enum.StateEnum;

namespace Entity.Finance.Entity
{
    /// <summary>
    /// 应付款管理模型
    /// </summary>
    public class PayManageModel
    {
        /// <summary>
        /// 应付款管理 ID
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 应付对账子单 ID
        /// </summary>
        public string PayAccountId { get; set; }

        /// <summary>
        /// 应付对账单 ID
        /// </summary>
        public string PayAccountItemId { get; set; }

        /// <summary>
        /// 供应商 ID
        /// </summary>
        public string SupplierId { get; set; }

        /// <summary>
        /// 单据日期
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 付款状态
        /// </summary>
        public PayType Status { get; set; } = PayType.待付款;

        /// <summary>
        /// 总金额
        /// </summary>
        public decimal Amount { get; set; }

        /// <summary>
        /// 已付款金额
        /// </summary>
        public decimal PayDone { get; set; } = 0;

        /// <summary>
        /// 附件
        /// </summary>
        public string? File { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 退款附件
        /// </summary>
        public string? ReturnFile { get; set; }

        /// <summary>
        /// 退款备注
        /// </summary>
        public string? ReturnRemark { get; set; }
    }
}
